home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
422_03
/
6805.asm
< prev
next >
Wrap
Assembly Source File
|
1994-02-25
|
2KB
|
266 lines
*
* Test file to verify instructions and addressing modes of: 6805
*
IMM EQU $12
DIR EQU $34
EXT EQU $5678
*
ADC #IMM
ADC DIR
ADC EXT
ADC ,X
ADC 1,X
ADC 1000,X
*
ADD #IMM
ADD DIR
ADD EXT
ADD ,X
ADD 1,X
ADD 1000,X
*
AND #IMM
AND DIR
AND EXT
AND ,X
AND 1,X
AND 1000,X
*
ASLA
ASLX
ASL DIR
ASL ,X
ASL 1,X
*
ASRA
ASRX
ASR DIR
ASR ,X
ASR 1,X
*
BCC *
BCS *
BEQ *
BHCC *
BHCS *
BHI *
BHS *
BIH *
BIL *
BLO *
BLS *
BMC *
BMI *
BMS *
BNE *
BPL *
BRA *
BRN *
BSR *
*
BCLR 0,DIR
BCLR 1,DIR
BCLR 2,DIR
BCLR 3,DIR
BCLR 4,DIR
BCLR 5,DIR
BCLR 6,DIR
BCLR 7,DIR
*
BIT #IMM
BIT DIR
BIT EXT
BIT ,X
BIT 1,X
BIT 1000,X
*
BRCLR 0,DIR,*
BRCLR 1,DIR,*
BRCLR 2,DIR,*
BRCLR 3,DIR,*
BRCLR 4,DIR,*
BRCLR 5,DIR,*
BRCLR 6,DIR,*
BRCLR 7,DIR,*
*
BRSET 0,DIR,*
BRSET 1,DIR,*
BRSET 2,DIR,*
BRSET 3,DIR,*
BRSET 4,DIR,*
BRSET 5,DIR,*
BRSET 6,DIR,*
BRSET 7,DIR,*
*
BSET 0,DIR
BSET 1,DIR
BSET 2,DIR
BSET 3,DIR
BSET 4,DIR
BSET 5,DIR
BSET 6,DIR
BSET 7,DIR
*
CLC
CLI
*
CLRA
CLRX
CLR DIR
CLR ,X
CLR 1,X
*
CMP #IMM
CMP DIR
CMP EXT
CMP ,X
CMP 1,X
CMP 1000,X
*
COMA
COMX
COM DIR
COM ,X
COM 1,X
*
CPX #IMM
CPX DIR
CPX EXT
CPX ,X
CPX 1,X
CPX 1000,X
*
DECA
DECX
DEC DIR
DEC ,X
DEC 1,X
*
EOR #IMM
EOR DIR
EOR EXT
EOR ,X
EOR 1,X
EOR 1000,X
*
INCA
INCX
INC DIR
INC ,X
INC 1,X
*
JMP DIR
JMP EXT
JMP ,X
JMP 1,X
JMP 1000,X
*
JSR DIR
JSR EXT
JSR ,X
JSR 1,X
JSR 1000,X
*
LDA #IMM
LDA DIR
LDA EXT
LDA ,X
LDA 1,X
LDA 1000,X
*
LDX #IMM
LDX DIR
LDX EXT
LDX ,X
LDX 1,X
LDX 1000,X
*
LSLA
LSLX
LSL DIR
LSL ,X
LSL 1,X
*
LSRA
LSRX
LSR DIR
LSR ,X
LSR 1,X
*
MUL
*
NEGA
NEGX
NEG DIR
NEG ,X
NEG 1,X
*
NOP
*
ORA #IMM
ORA DIR
ORA EXT
ORA ,X
ORA 1,X
ORA 1000,X
*
ROLA
ROLX
ROL DIR
ROL ,X
ROL 1,X
*
RORA
RORX
ROR DIR
ROR ,X
ROR 1,X
*
RSP
RTI
RTS
*
SBC #IMM
SBC DIR
SBC EXT
SBC ,X
SBC 1,X
SBC 1000,X
*
SEC
SEI
*
STA DIR
STA EXT
STA ,X
STA 1,X
STA 1000,X
*
STOP
*
STX DIR
STX EXT
STX ,X
STX 1,X
STX 1000,X
*
SUB #IMM
SUB DIR
SUB EXT
SUB ,X
SUB 1,X
SUB 1000,X
*
SWI
TAX
*
TSTA
TSTX
TST DIR
TST ,X
TST 1,X
*
TXA
*
WAIT